import Vue from 'vue'
import App from './App.vue'
import 'amfe-flexible'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store'
import * as directives from "./util/directives"
console.log(directives);
Object.keys(directives).map((item,i)=>{
  Vue.directive(item, directives[item]);
})
Vue.use(ElementUI);
Vue.prototype.$message = ElementUI.Message
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
